package com.zcup.designer.contribute.prototype;

public class Client {
    public static void main(String[] args) {
        ConcretePrototype prototype1 = new ConcretePrototype("1");
        Prototype prototype2 = prototype1.clone();
        prototype2.setId("34");
        System.out.println(prototype1 + "\t" + prototype1.getId());
        System.out.println(prototype2 + "\t" + prototype2.getId());
    }
}
